﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace BussinessLayer
{
    public class tblThamso_xldv
    {
        DataLayer.Data odata = new DataLayer.Data();
        public DataTable Select()
        {
            return odata.view_text("SELECT * FROM thamso_xldv WHERE thamso_id=(select max(thamso_id) from thamso_xldv) ORDER BY loai");
        }
        public void thamso_xldv(int t1, int t2, int t3)
        {
            SqlParameter[] sp = new SqlParameter[3];
            sp[0] = new SqlParameter("@t1", t1);
            sp[1] = new SqlParameter("@t2", t2);
            sp[2] = new SqlParameter("@t3", t3);
            odata.proc_TS("tblThamso_xldv", sp);
        }
    }
}
